import pygame
import sys
class Mygame:
    def __init__(self):
        pygame.init()
        self.clock=pygame.time.Clock()
        self.screen=pygame.display.set_mode((800,600))
        pygame.display.set_caption("1111")
        self.bg_color=(0,230,230)
    def run_game(self):
        while True:
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    sys.exit()
            self.screen.fill(self.bg_color)
            self.clock.tick(60)
            pygame.display.flip()
if __name__=="__main__":
    ai=Mygame()
    ai.run_game()         
    